package com.sdy.resdir.biz.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.sdy.auth.api.model.AuthDto;
import com.sdy.auth.api.model.UserDto;
import com.sdy.usercenter.api.dto.RoleDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author hyh
 */
@Data
public class UserInfoVo extends UserDto {

    @ApiModelProperty("是否拥有该资源")
    private Integer isHave;

    @ApiModelProperty("角色列表")
    private List<RoleDto> roleDtos;

    @ApiModelProperty("当前登录部门")
    private String ownDeptName;

    @ApiModelProperty("当前登录部门id")
    private Integer ownDeptId;

    @ApiModelProperty("获取到所有权限")
    private Map<String, Boolean> authTree;

    @ApiModelProperty("上传路径")
    private String uploadUrl;

}
